Repository navigation
fix(appbar): keep the medium and large title below the actions - #5285
Open
Priyanshu0007 wants to merge 1 commit into
Open
Priyanshu0007 wants to merge 1 commit into
Priyanshu0007 wants to merge 1 commit into
Conversation
In `medium` and `large` modes the title is anchored to the bottom of a fixed-height bar and grows upward. At larger text sizes, or with a taller custom title or `titleStyle`, it reached the actions row and took the presses of the back action. The bar now grows so the title starts below the actions' 48dp touch targets. Default heights (112 and 152) are unchanged. Fixes callstack#5280
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
In
medium/largethe title grows up from the bar's bottom. At large text sizes it covers the actions, so tapping back runs the title'sonPress. The bar now grows so the title stays below the actions. Default heights unchanged.Related issue
Fixes #5280
Screenshots / Videos
iOS before/after
https://github.com/user-attachments/assets/fddbef1e-935c-4e37-a1d5-103d51ab9e76
https://github.com/user-attachments/assets/be494602-56de-490b-9802-59024ad94251
Android before/after
https://github.com/user-attachments/assets/e6815fee-8eac-4e2c-b6d9-95868393a9d9
https://github.com/user-attachments/assets/b2606c92-e7e3-4e72-99e1-cf332d44fe36
Web before/after
https://github.com/user-attachments/assets/049ec83b-d33b-47bc-8e59-fe505bbfeb34
https://github.com/user-attachments/assets/9e1f7303-6abb-4b4a-8fd8-91186be76b6c
Test plan
Largest text size → Appbar example → Medium/Large → tap back: it goes back (before: "Heading pressed").